cd "/Users/benjaminenke/Dropbox/Research/Projects/What_you_see/"


forvalues i=1/8{
ranksum naivete if round==`i', by(dum_selected_control)
}


fvset base 1 session



eststo clear
eststo: qui qreg2 naivete dum_selected_control dum_session*, cl(subject)
eststo: qui qreg2 naivete dum_selected_control dum_session* $controls, cl(subject)
eststo: qui reg naivete_winsorized dum_selected_control dum_session*, cl(subject)
eststo: qui reg naivete_winsorized dum_selected_control dum_session* $controls, cl(subject)
eststo: qui reg naivete dum_selected_control dum_session* if sample_trimmed==1, cl(subject)
eststo: qui reg naivete dum_selected_control dum_session* $controls if sample_trimmed==1, cl(subject)

esttab 	using $pathout/Tables/Baseline.tex, booktabs nonotes replace compress  label nomtitles /// 
		indicate("Session FE=*session*"  "Task FE $\times$ prior =*round*" "Controls=female") /// 
		drop(_cons $controls_drop) se(2) b(a2) r2(2)  star(* 0.10 ** 0.05 *** 0.01) ///
		prehead("{\begin{tabular}{l*{6}{c}}\toprule\toprule&\multicolumn{6}{c}{\textit{Dependent variable:}}\\& \multicolumn{6}{c}{Neglect $\hat{\chi}^j_i$}\\\cmidrule(lr){2-7} \\ &\multicolumn{2}{c}{Median regression} & \multicolumn{2}{c}{OLS winsorized} &\multicolumn{2}{c}{OLS trimmed}\\ \cmidrule(lr){2-3}\cmidrule(lr){4-5}\cmidrule(lr){6-7}")







